From 0a84f81b861c6e4bc33121b09680923bae45eba9 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 31 Oct 2006 18:10:54 +0000 Subject: [PATCH] In KML/Realtime mode, pull track out of folder and up one level as we know we'll have only one track. --- kml.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kml.c b/kml.c index a3851342c..5b8099337 100644 --- a/kml.c +++ b/kml.c @@ -484,7 +484,9 @@ void kml_output_trkdescription(const route_head *header, computed_trkdata *td) static void kml_output_header(const route_head *header, computed_trkdata*td) { - kml_write_xml(1, "\n"); + if (!realtime_positioning) { + kml_write_xml(1, "\n"); + } kml_write_xmle("name", header->rte_name); kml_output_trkdescription(header, td); @@ -618,7 +620,9 @@ static void kml_output_tailer(const route_head *header) xfree(point3d_list); point3d_list = NULL; - kml_write_xml(-1, "\n"); + if (!realtime_positioning) { + kml_write_xml(-1, "\n"); + } } static -- 2.30.2